Parameters documentPath is a file system path to an ARA session document, created by Apple’s Remote Access application, that contains the user name and phone number to be used for the connection.
password is the user password. It can be the empty string if the password is saved in the session document, or if a prompt is desired. See Notes.
showProgress is a boolean value, indicating whether or not the modal progress dialog should be displayed as the connection is established.
Action Establishes a remote connection using the connection document at documentPath.
Returns True if a connection is successfully established, otherwise false.
Notes If password is the empty string, and the user password is not saved in the ARA session document, this verb will display a dialog requesting that a password be entered.
If showProgress is false, the connection will be established asynchonously. To determine whether or not the connection has been completed, use ARA.connectionStatus
See Also ARA.connectionStatus
ARA.disconnect
Verb ARA.connectedTo
Syntax ARA.connectedTo ()
Parameters None.
Action Retrieves the name of the host machine for the current session.
Returns The name of the current host machine, or the empty string if not connected.
Examples ARA.connectedTo ()
« Susan's Mac IIsi
Verb ARA.connectionStatus
Syntax ARA.connectionStatus ()
Parameters None.
Action Determines whether a connection is in progress, or is being established, canceled, or broken.
Returns 3 if connected, 2 if in the process of connecting, 1 if canceling a new connection, 0 if not connected, and -1 if in the process of disconnecting.
Examples return (ARA.connectionStatus () >= 2) «see if we’re connected or in the process of connecting
« true
Notes Unless ARA.connect or ARA.disconnect is called asynchronously — with showDialog false — this verb will always return either 0 or 3.
See Also ARA.statusMessage
Verb ARA.disconnect
Syntax ARA.disconnect (showProgress)
Parameters showProgress is a boolean value, indicating whether or not the modal progress dialog should be displayed as the connection is broken.
Action Terminates the current connection.
Returns True if the connection is successfully broken, otherwise false.
Examples ARA.disconnect (false)
« true
Notes If showProgress is false, the connection will be broken asynchonously. To determine whether or not the disconnection has completed, use ARA.connectionStatus
See Also ARA.connect
ARA.connectionStatus
Verb ARA.inAnswerMode
Syntax ARA.inAnswerMode ()
Parameters None.
Action Determines whether or not Remote Access is waiting for incoming calls.
Returns True if ARA is set up to receive incoming calls, false otherwise.
Examples ARA.inAnswerMode ()
« false
Notes The verb is not completely implemented, and currently always returns false.
Verb ARA.setMessage
Syntax ARA.setMessage (messageString)
Parameters messageString is a single line of text to be displayed in the ARA message window.
Action Displays the text in messageString in the ARA message window.
Returns True.
Examples ARA.setMessage (ARA.statusMessage ())
« true
See Also ARA.statusMessage
Verb ARA.statusMessage
Syntax ARA.statusMessage ()
Parameters None.
Action Retrieves the Remote Access Manager's internal status message.
Returns The current ARA status message, or the empty string if not connected.
Examples ARA.statusMessage ()
« Communicating at 2400 bps.
See Also ARA.connectionStatus
Verb ARA.timeConnected
Syntax ARA.timeConnected ()
Parameters None.
Action Determines how long the current session has been in progress.
Returns The number of seconds that the current connection has been established, or zero in not connected.